<?php
/**
 * 通用服务
 * User: lxl
 * Date: 2022/04/01
 */

use App\Http\Controllers\Service\CaptchaController;
use App\Http\Controllers\Service\ThumbPicController;
use App\Http\Controllers\Service\AreaMapController;
use App\Http\Controllers\Service\UeditorController;
use App\Http\Controllers\Service\CommonController;

Route::get('dxk', [\App\Http\Controllers\DXKController::class, 'index']);
Route::group(['namespace' => 'Service'], function () {
    //验证码
    Route::get('captcha', [CaptchaController::class, 'index']);
    //缩略图
    Route::get('pic', [ThumbPicController::class, 'index']);
    //子级区域
    Route::get('subarea', [AreaMapController::class, 'ajaxGetSubArea']);
    //ueditor
    Route::any('ueditor/config', [UeditorController::class, 'index']);
    Route::any('download', [CommonController::class, 'download']);
    Route::any('download_storage', [CommonController::class, 'downloadAndDelete']);
});
